# -*- coding: utf-8 -*-

from django.http import HttpResponse, JsonResponse
from common.mymako import render_mako_context
from blueking.component.shortcuts import get_client_by_request


def home(request):
    """
    首页
    """
    # client = get_client_by_request(request)
    # res = client.cc.search_business()
    data = dict(message="this is rainy day", result=True, a="test")
    return JsonResponse(data)
    #return render_mako_context(request, '/home_application/home.html')


def dev_guide(request):
    """
    开发指引
    """
    return render_mako_context(request, '/home_application/dev_guide.html')


def contactus(request):
    """
    联系我们
    """
    return render_mako_context(request, '/home_application/contact.html')
